﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="HCLT.Practice.WindowsAzure.Solution.STSAuthentication.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Login to the security token service (STS)</title>
    <style type="text/css">
        .style1
        {
            border-style: groove;
            width: 70%;
            vertical-align: middle;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 10px;
            background-color: #C0C0C0;
        }
        .style5
        {
            width: 90px;
        }
        #form1
        {
            height: 526px;
            width: 934px;
        }
        .style7
        {
            height: 591px;
            width: 900px;
        }
        .style8
        {
            width: 240px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table  border="0" style="width: 900px; height: 600px;">
    <tr><td class="style7" align="center">
    
     <table class="style1" border="0">
        <tr>
            <td align="left">
                <img src="Images/hcl-logo.jpg" />
            </td>
        </tr>
     </table>
    <table class="style1" border="0" cellpadding="2px" cellspacing="3px">
    <thead>
    <tr><td colspan="2">
    Please enter your network username and password
        to login</td></tr>
     <tr><td colspan="2">
    </td></tr>
        
    </thead>
        <tr>
            <td class="style8">
                <asp:Label ID="Label1" runat="server" Text="User name"></asp:Label>
            </td>
            <td align=left>
                <asp:TextBox ID="txtUserName" runat="server" Width="148px"></asp:TextBox>
        
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtUserName" ErrorMessage="Please enter your valid username"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Label ID="Label2" runat="server" Text="Password"></asp:Label>
            </td>
            <td  align=left>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="149px">password</asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtPassword" 
            ErrorMessage="Please enter the valid password"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr><td colspan="2" align="center">
                <asp:Button ID="btnSubmit" OnClientClick="ClearMessageBox('lblMessage')" 
                    runat="server" Text="Login" onclick="BtnSubmit_Click" />
        </td></tr>
        <tr>
        <td  colspan="2" align="center">
           <asp:Label ID="lblMessage" ForeColor="Red" runat="server" Visible="true"></asp:Label>
        </td>
        </tr>
    </table>
    </td></tr>
    </table>
    <p>
        
        <i>
     </p>
<p>
    <i></p>
    </form>
</body>
</html>
<script type="text/javascript">
    function ClearMessageBox(msgboxId) {
        if (document.getElementById(msgboxId) != null) {
            document.getElementById(msgboxId).style.display = 'none';
        }
    }
</script>
